package cn.xej.health.archives.feign;

import cn.xej.health.common.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xej
 */
@FeignClient("health-team")
public interface TeamFeignService {

    /**
     * 获取区划
     * @return
     */
    @GetMapping("/team/divisionList")
    public CommonResult divisionList();


    /**
     * 获取团队树
     * @param did
     * @return
     */
    @GetMapping("/team/teamTree/{did}")
    public CommonResult teamTree(@PathVariable("did")Integer did);

    /**
     * 获取该团队的成员
     * @param tid
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @GetMapping("/captain/getTeamDockerList/{tid}")
    public CommonResult getTeamDockerList(@PathVariable("tid")Integer tid, @RequestParam("pageIndex")Integer pageIndex,@RequestParam("pageSize")Integer pageSize);
}
